package org.example.service;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

@WebService(name = "TestService", // 暴露服务名称
        targetNamespace = "http://service.example.org"// 命名空间,一般是接口的包名倒序
)
public interface testService {
    @WebMethod
    String sayHello(@WebParam(name = "name" , targetNamespace = "http://service.example.org") String name);

    @WebMethod
    String sm2Encrypt(@WebParam(name = "data",targetNamespace = "http://service.example.org") String data);
    @WebMethod
    String sm2Decrypt(@WebParam(name = "data",targetNamespace = "http://service.example.org") String data);

    @WebMethod
    String sm4EcbEncrypt(@WebParam(name = "data",targetNamespace = "http://service.example.org") String data);
    @WebMethod
    String sm4EcbDecrypt(@WebParam(name = "data",targetNamespace = "http://service.example.org") String data);
    @WebMethod
    String sortJson(@WebParam(name ="jsonStr",targetNamespace = "http://service.example.org") String jsonStr);
}
